package com.ts.animal.service;

import com.ts.animal.domain.ExWarningSetDO;
import com.ts.animal.domain.WarningSetDO;
import com.ts.common.utils.Result;

import java.util.List;
import java.util.Map;

/**
 * 预警配置表
 *
 * @author bobby
 * @email bobby@126.com
 * @date 2022-09-02 16:18:40
 */
public interface WarningSetService {

    WarningSetDO get(String animalType);

    List<WarningSetDO> list(Map<String, Object> map);

    List<ExWarningSetDO> listAll();

    int count(Map<String, Object> map);

    int save(Result result, WarningSetDO warningSet);

    int save(Result result, List<ExWarningSetDO> exWarningSetDOs);

    int update(Result result, WarningSetDO warningSet);

    int remove(Result result, String animalType);

    int batchRemove(Result result, String[] animalTypes);

    Map<String, ExWarningSetDO> warningSets();
}
